<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:p="http://primefaces.org/ui" xmlns:a4j="http://richfaces.org/a4j"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
				
				<h:panelGrid id="display" columns="2" cellpadding="4"
					style="width:400px;" styleClass="ui-widget-content"
					columnClasses="label, value">

					<f:facet name="header">
						<center>
							<h:outputText value="Özellikler" />
						</center>
						<br></br>
					</f:facet>

					<h:outputText value="Firma:" />
					<h:outputText  id="urunFirmaIsim"
						value="#{BuzdolabiBean.selectedBuzdolabi.sirketprofil.firmaAd}" />

					<h:outputText value="Marka:" />
					<p:inputText  id="urunMarka"
						value="#{BuzdolabiBean.selectedBuzdolabi.aygit.marka}" />

					<h:outputText value="Model:" />
					<p:inputText  id="firmaModel"
						value="#{BuzdolabiBean.selectedBuzdolabi.aygit.model}" />

					<h:outputText value="Tip:" />
					<p:inputText  id="tipi"
						value="#{BuzdolabiBean.selectedBuzdolabi.tipi}" />

					<h:outputText value="Soğutucu Net Hacmi:" />
					<p:inputText  id="sogutucuNetHacim"
						value="#{BuzdolabiBean.selectedBuzdolabi.sogutucuNetHacim}" />

					<h:outputText value="Dondurucu Net Hacmi:" />
					<p:inputText  id="dondurucuNetHacim"
						value="#{BuzdolabiBean.selectedBuzdolabi.dondurucuNetHacim}" />

					<h:outputText value="Dondurucu Kapasite:" />
					<p:inputText  id="dondurucuKapasite"
						value="#{BuzdolabiBean.selectedBuzdolabi.dondurucuKapasite}" />

					<h:outputText value="Renk:" />
					<p:inputText  id="renk"
						value="#{BuzdolabiBean.selectedBuzdolabi.renk}" />

					<h:outputText value="Hijyen Özellik:" />
					<p:inputText  id="hijyenOzellik"
						value="#{BuzdolabiBean.selectedBuzdolabi.hijyenOzellik}" />

					<h:outputText value="Kapı Yön Değiştirme:" />
					<p:inputText  id="kapiYonDegistirme"
						value="#{BuzdolabiBean.selectedBuzdolabi.kapiYonDegistirme}" />

					<h:outputText value="Su Pompası:" />
					<p:inputText  id="suPompasi"
						value="#{BuzdolabiBean.selectedBuzdolabi.suPompasi}" />

					<h:outputText value="Gövde Raf Tipi:" />
					<p:inputText  id="govdeRafTipi"
						value="#{BuzdolabiBean.selectedBuzdolabi.govdeRafTipi}" />

					<h:outputText value="Kapı Raf Tipi:" />
					<p:inputText  id="kapiRafTipi"
						value="#{BuzdolabiBean.selectedBuzdolabi.kapiRafTipi}" />

					<h:outputText value="Hızlı Dondurucu Bölmesi:" />
					<p:inputText  id="hizliDonBolmesi"
						value="#{BuzdolabiBean.selectedBuzdolabi.hizliDonBolmesi}" />

					<h:outputText value="Buzluk:" />
					<p:inputText  id="buzluk"
						value="#{BuzdolabiBean.selectedBuzdolabi.buzluk}" />
					
					<h:outputText value="Çekmece Sayısı:" />
					<p:inputText  id="cekmeceSayisi"
						value="#{BuzdolabiBean.selectedBuzdolabi.cekmeceSayisi}" />
					
					<h:outputText value="Aydınlatma:" />
					<p:inputText  id="aydinlatma"
						value="#{BuzdolabiBean.selectedBuzdolabi.aydinlatma}" />
						
					<h:outputText value="Donduru Bölme Aydınlatma:" />
					<p:inputText  id="donBolmeAydinlatma"
						value="#{BuzdolabiBean.selectedBuzdolabi.donBolmeAydinlatma}" />
						
					<h:outputText value="Sıfır Derece Bölmesi:" />
					<p:inputText  id="sifirDereceBolmesi"
						value="#{BuzdolabiBean.selectedBuzdolabi.sifirDereceBolmesi}" />
						
					<h:outputText value="Şişelik Bölmesi:" />
					<p:inputText  id="siselikBolmesi"
						value="#{BuzdolabiBean.selectedBuzdolabi.siselikBolmesi}" />
						
					<h:outputText value="Sebzelik:" />
					<p:inputText  id="sebzelik"
						value="#{BuzdolabiBean.selectedBuzdolabi.sebzelik}" />
					
					<h:outputText value="Katlanabilir Tel Raf:" />
					<p:inputText  id="katlanabilirTelRaf"
						value="#{BuzdolabiBean.selectedBuzdolabi.katlanabilirTelRaf}" />
						
					<h:outputText value="Enerji Performansı:" />
					<p:inputText  id="enerjiPerformans"
						value="#{BuzdolabiBean.selectedBuzdolabi.enerjiPerformans}" />
						
					<h:outputText value="Enerji Tüketimi:" />
					<p:inputText  id="enerjiTuketimi"
						value="#{BuzdolabiBean.selectedBuzdolabi.enerjiTuketimi}" />
						
					<h:outputText value="Çocuk Kilidi:" />
					<p:inputText  id="cocukKilit"
						value="#{BuzdolabiBean.selectedBuzdolabi.cocukKilit}" />
					
					<h:outputText value="Yükseklik:" />
					<p:inputText  id="yukseklik"
						value="#{BuzdolabiBean.selectedBuzdolabi.yukseklik}" />
						
					<h:outputText value="Genişlik:" />
					<p:inputText  id="genislik"
						value="#{BuzdolabiBean.selectedBuzdolabi.genislik}" />
						
					<h:outputText value="Derinlik:" />
					<p:inputText  id="derinlik"
						value="#{BuzdolabiBean.selectedBuzdolabi.derinlik}" />

					<h:outputText value="Garanti Suresi:" />
					<p:inputText  id="urunGarantiSuresi"
						value="#{BuzdolabiBean.selectedBuzdolabi.garantiSuresi}" />
					<h:outputText />
					<h:outputText />
					
					<h:outputText />
					<p:commandButton value="Save" update=":urunislemForm" id="ajax" 
						action="#{BuzdolabiBean.SaveOrUpdate}" />
					
				</h:panelGrid>
				<c:if test="#{AygitBean.yeniUrun==false}">
				
				<p:dataGrid var="resim" value="#{ResimlerBean.selectedAygitResimList}" columns="3"
					rows="6" paginator="true" id="resimListesi"
					paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} 
					{PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
					rowsPerPageTemplate="3,6,9">

					<p:column>
						<p:panel>
							<h:panelGrid columns="1" style="width:100%">
								 <p:graphicImage value="#{resim.resimKonum}" 
        						style="height:100px; width:90px;"/> 
								
								<p:commandButton value="Delete" update=":urunislemForm" 
    							id="DeletePictures" 
            			 		action="#{ResimlerBean.deleteAygitFile(resim)}"/>
            			 		
							</h:panelGrid>
						</p:panel>
					</p:column>

				</p:dataGrid>
					
				</c:if>
				<ui:include src="uploadPictures.xhtml" />
</ui:composition>